package com.sise.wangzhan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import java.util.Scanner;

@SpringBootApplication
public class SpringCloudLab03RibbonServerApplication {

    public static void main(String[] args) {
       // SpringApplication.run(SpringCloudLab03RibbonServerApplication.class, args);

        Scanner scan = new Scanner(System.in);
        System.out.println("请输入端口号：");
        String port = scan.nextLine();

        new SpringApplicationBuilder(SpringCloudLab03RibbonServerApplication.class)
                .properties("server.port="+port).run(args);


    }

}
